BzrSrf2Polygons

Section: C Library Functions (3)
Updated: IRIT Version 6.0
Index Return to Main Contents
 

NAME

BzrSrf2Polygons()  

SYNOPSIS

cagd_lib/bzr2poly.c:45

CagdPolygonStruct *BzrSrf2Polygons(CagdSrfStruct *Srf,
                                   int FineNess,
                                   CagdBType ComputeNormals,
                                   CagdBType FourPerFlat,
                                   CagdBType ComputeUV)
 

DESCRIPTION

Routine to convert a single Bezier surface to set of triangles approximating it. FineNess is a fineness control on result and the larger is more triangles may result. A value of 10 is a good start value. NULL is returned in case of an error, otherwise list of CagdPolygonStruct.  

PARAMETERS:

Srf: To approximate into triangles.

FineNess: Control on accuracy, the higher the finer.

ComputeNormals: If TRUE, normal information is also computed.

FourPerFlat: If TRUE, four triangles are created per flat surface. If FALSE, only 2 triangles are created.

ComputeUV: If TRUE, UV values are stored and returned as well.  

FUNCTION RETURN VALUE

CagdPolygonStruct *: A list of polygons with optional normal and/or UV parametric information. NULL is returned in case of an error.  

SEE ALSO

BspSrf2Polygons, IritSurface2Polygons, IritTrimSrf2Polygons, , SymbSrf2Polygons, TrimSrf2Polygons,

 

ORIGIN

(C) Copyright 1989/90-95 Gershon Elber, Technion, IIT


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS:
FUNCTION RETURN VALUE
SEE ALSO
ORIGIN

This document was created by man2html, using the manual pages.
Time: 07:27:18 GMT, October 17, 2022